<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
  <head>
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="description" content="Sharing gift information" />
    <meta name="keywords" content="Gift Digg Share" />
    <meta name="Language" content="ja-JP" />
    <meta name="Robots" content="All" />
    <%= stylesheet_link_tag 'style' %>
    <!--[if lte IE 6]>
        <%= stylesheet_link_tag 'ie6' %>
        <script type="text/javascript">
          if (typeof blankImg == 'undefined') var blankImg = 'images/blank.gif';
        </script>
        <style type="text/css" media="screen">
          body {behavior:url(/images/iehfix.htc); }
          img {behavior:url(/images/iepngfix.htc); }
        </style>
        <![endif]-->
    <%= javascript_include_tag "prototype", "effects" %>
    <title><%= _("10 pockets : %{title}") % {:title => @title} %></title>
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<%= url_for :controller => :page, :action => :feed, :only_path => false %>"/>
    <link rel="icon" href="favicon.ico" type="image/x-icon"/>
  </head>
  <body>
    <!-- wrap starts here -->
    <div id="wrap">
      <!--header -->
      <div id="header">
        <h1 id="logo-text"><%= link_to _("10 pockets"), :controller => :account, :action => :index %></h1>
        <p id="slogan"><%= _('by MOONGIFT')%></p>
        <div id="header-links">
          <p>
            <%= link_to _("Popular gift"), :controller => :account, :action => :index %>&nbsp;|&nbsp;
            <%= link_to _("New gift"), :controller => :item, :action => :new %>&nbsp;|&nbsp;
            <%= link_to _("Add gift"), :controller => :item, :action => :add %>&nbsp;|&nbsp;
	    <%= link_to image_tag("rss.gif", :alt=>"RSS", :border => 0),:controller => :item, :action => :feed %>
          </p>
            <% if logged_in? %>
            <%= _("Logged in for ") %><%= sanitize @session[:user_uri].gsub("http://", "") %>
            <% end %>
        </div>
      </div>
      <!-- navigation -->
      <div id="menu">
        <ul>
          <li><%= link_to _("Home"), :controller => :account, :action => :index %></li>
          <li><%= link_to _("Age"), :controller => :item, :action => :age %></li>
          <li><%= link_to _("Event"), :controller => :item, :action => :event %></li>
          <li><%= link_to _("Gender"), :controller => :item, :action => :gender %></li>
          <li><%= link_to _("Tag"), :controller => :item, :action => :tag %></li>
          <li>
            <% if logged_in? %>
              <li><%= link_to _("Logout"), :controller => :account, :action => :logout %></li>
            <% else %>
              <li><%= link_to _("Login"), :controller => :account, :action => :login %></li>
            <% end %>
          </li>
        </ul>
      </div>
      <!-- content-wrap starts here -->
      <div id="content-wrap">
        <div id="main" >
          <div id="navbar">
	    <%= link_to _("Home"), :controller => :account, :action => :index %>
            &#187; <a href="/pligg/upcoming.php">Upcoming</a>
        </div>
        <p style="color: green"><%= flash[:notice] %></p>
        <%= yield  %>

        </div>
        <div id="sidebar">
          <div class="featurebox">
            <h2><%=h _("Search Box")%></h2>
	    <%= form_tag({:controller => :item, :action => :site}, {:method => "get", :id => "thisform-search", :class => "searchform"}) %>
	      <%= text_field_tag "search", @term, {:class => 'textbox', :id => "searchsite", :onfocus => "if(this.value == 'Search..') {this.value = '';}", :onblur => "if (this.value == '') {this.value = 'Search..';}"} %>
              <%= submit_tag _("Go"), {:class => "button"} %>
	    <%= end_form_tag %>
          </div>

          <div class="featurebox">
            <div class="tlb"><h2>Top Today</h2></div><div id="sstop" style="padding-bottom:2px">
          </div></div>
          <div class="featurebox">
            <div class="tlb"><h2>Published News</h2></div><div id="ssstories" style="padding-bottom:2px">
          </div></div>
          <div class="featurebox">
            <h2>Categories</h2>
            <div id="cats" style="padding-bottom:1px">
              <ul id="nav-secondary">
                <li>
                  <a href="/pligg/rss.php?category=1" target="_blank" style="border:none;">
                    <%= image_tag("rss.gif", :border => 0, :alt=>"RSS", :style => "float:right;padding-right:10px;") %></a>
                  <a href="/pligg/upcoming.php?category=pligg" style="padding-bottom:5px;">pligg</a>
                </li>
              </ul>
            </div>
          </div>
          <div class="featurebox">
            <div class="tlb">
	      <span>
		<a onclick="new Effect.toggle('latcomments','blind', {queue: 'end'}); "> </a>
	      </span>
	      <h2><%=h _("Latest gifts")%></h2>
	    </div>
	    <div id="latcomments">
	      <ul>
		<li class="rmore"><a href="/pligg/live_comments.php">read more</a></li>
	      </ul>
	    </div>
	  </div>
          <div class="featurebox">
            <a href="/pligg/cloud.php"><h2><%=h _("Top 5 Tags") %></h2></a>
            <div id="s2" style="margin: 5px 0 0 0; line-height: 15pt;">
	      <% Gift.tag_counts(:at_least => 1, :order => :name, :limit => 5).each {|t| %>
              <span style="font-size: 8pt">
		<%= link_to t.name, :controller => :item, :action => :tag, :id => t %>
              </span>
	      <% } %>
              <ul><li class="rmore"><%= link_to _("read more"), :controller => :item, :action => :tag %></li></ul>
          </div></div>
        </div>

        <!-- content-wrap ends here -->
      </div>

      <!--footer starts here-->

      <div id="footer">
        <p>
          <!-- START changing thos line below is in violation of Creative Commons 2.5 license -->
          Design by: <a href="http://socialcmsbuzz.com/">Social CMS Buzz</a>&nbsp;&&nbsp;<a href="http://www.styleshout.com/">styleshout</a> |
          <!-- END changing this line above is in violation of Creative Commons 2.5 license -->
          Valid <a href="http://validator.w3.org/check?uri=referer">XHTML</a> |
          <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
        </p>
      </div>
      <!-- wrap ends here -->
    </div>
  </body>
</html>
